﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace LdtJudge.DataEngine.Model.XMLConfigModel.PersonnelConfigModel
{
    [Serializable]
    [XmlRootAttribute("root", IsNullable = false)]
    public class PersonelRootModel
    {
        [XmlElementAttribute("result")]
        public List<PersonnelResultModel> personnelResultModelList;
    }
    /// <summary>
    /// 结果集
    /// </summary>
    [Serializable]
    [XmlRootAttribute("result", IsNullable = false)]
    public class PersonnelResultModel
    {
        /// <summary>
        /// 诉讼地位名称
        /// </summary>
        [XmlAttribute("name")]
        public string name { get; set; }

        /// <summary>
        /// 诉讼地位ID
        /// </summary>
        [XmlAttribute("suitdegreeid")]
        public string suitdegreeid { get; set; }

        [XmlElementAttribute("正则")]
        public List<PersonnelReg> personnelRegList { get; set; }
    }

    /// <summary>
    /// 人员判定正则
    /// </summary>
    [Serializable]
    [XmlRootAttribute("正则", IsNullable = false)]
    public class PersonnelReg
    {
        [XmlAttribute("code")]
        public string code { get; set; }
        [XmlElementAttribute("匹配")]
        public List<PersonnelMatching> personnelMatchingList { get; set; }
    }

    /// <summary>
    /// 人员匹配信息
    /// </summary>
    [Serializable]
    [XmlRootAttribute("匹配", IsNullable = false)]
    public class PersonnelMatching
    {
        [XmlAttribute("人员序列")]
        public string index { get; set; }
        [XmlAttribute("人员姓氏")]
        public string surname { get; set; }
        [XmlAttribute("人员简称")]
        public string jiancheng { get; set; }
        [XmlAttribute("人员姓名")]
        public string name { get; set; }
        [XmlAttribute("被公代")]
        public string beigongdai { get; set; }
        [XmlAttribute("被保代")]
        public string beibaodai { get; set; }
        [XmlAttribute("被保")]
        public string beibao { get; set; }
    }
}
